package admin

import (
	database "hft/Database"
	"time"
)

// 客户与经纪人系统
type UserBroker struct {
	UserId      int       `json:"userId" gorm:"index"`
	BrokerId    int       `json:"brokerId" gorm:"index"`
	ProtectTime time.Time `json:"protectTime"` //从哪一天开始接入
	Level       string    `json:"level"`       //客户等级
}

func (UserBroker) TableName() string {
	return database.TableNameFormat("user_broker")
}
